page.tsx 721 B

12345678910111213141516171819202122232425
  1. import { getTranslations } from "next-intl/server";
  2. import { setRequestLocale } from "next-intl/server";
  3. import ForgotPasswordForm from "./forgot-password-form";
  4. interface ForgotPasswordPageProps {
  5. params: Promise<{ locale: string }>;
  6. }
  7. export async function generateMetadata({ params }: ForgotPasswordPageProps) {
  8. const { locale } = await params;
  9. const t = await getTranslations({ locale, namespace: "auth.forgotPassword" });
  10. return {
  11. title: t('pageTitle'),
  12. };
  13. }
  14. export default async function ForgotPasswordPage({ params }: ForgotPasswordPageProps) {
  15. const { locale } = await params;
  16. // Enable static rendering
  17. setRequestLocale(locale);
  18. return <ForgotPasswordForm locale={locale} />;
  19. }